<?php
/**
 * +--------------------------------------------------------+
 * @Created by Phpstorm.
 * @Category Role.php
 * @Depiction
 * @Author hwy <429208948@qq.com>
 * @Date 2022/4/6  18:00
 * +--------------------------------------------------------+
 */

namespace App\Models;

use DateTimeInterface;

class Role extends \Spatie\Permission\Models\Role
{
    protected $table = 'roles';
    /**
     * 可以被批量赋值的属性.
     *
     * @var array
     */
    protected $fillable = ['id','name','display_name','guard_name'];

    protected function serializeDate(DateTimeInterface $date)
    {
        return $date->format('Y-m-d H:i:s');
    }

}
